package org.linlinjava.litemall.wx.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value="购物车添加商品请求类",description="购物车添加商品请求类")
public class CartAddRequest {

	//在保存编辑购物车时需要传递
	@ApiModelProperty(value = "购物车id")
	private Integer id;

	//添加到购物车时传递的参数
	@ApiModelProperty(value = "店铺id")
	@NotNull
	private Integer shopId;
	@ApiModelProperty(value = "商品id")
	@NotNull
    private Integer goodsId;
	@ApiModelProperty(value = "规格id数组")
	@NotNull
	private Integer[] specIds;
	@ApiModelProperty(value = "购买数量")
	@NotNull
	private Integer number;
	@ApiModelProperty(value = "辅料对象")
	private List<CartAddAccessoryVo> accessoryList;
	@ApiModelProperty(value = "属性列表")
	private List<CartAddPropertyVo> propertyList;
}
